﻿<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
    <title></title>
</head>
<body>
    <script type="text/javascript">
        var integer = 1732;
        var integerStr = integer.toString();
        var check = integerStr[integerStr.length - 3] == 7;
        if (check) {
            document.writeln("The third digit is 7.");
        }
        else {
            document.writeln("The third digit is not 7.");
        }
    </script>
</body>
</html>
